import request from "../utils/http.ts";
import {OrderVO} from "../type/order";
/**
 * 支付订单
 * @param id
 * */
export function payAPI(id:number) {
    return request<OrderVO>({
        url: `/order/update/${id}`,
        method: 'GET',
    })
}

/**
 * 获取商家订单列表
 * */
export function list(id:number) {
    return request<OrderVO[]>({
        url: `order/getByBusinessId/${id}`,
        method: 'GET',
    })
}
